<?php
require_once('Extension/Controller/Action.php');

class Admin_RestController extends Extension_Controller_Action 
{
    public function indexAction() 
    {
        $client = Kbs::initRestClient();

        $client->getName(1, 'tt');
        $response = $client->get();
        if ($response->isSuccess()) {
            echo $response->name . '<br />';
        }

        $client->getName(3, 'tt');
        $response = $client->post();
        if ($response->isSuccess()) {
            echo $response->name . '<br />';
        }

        $client->getWords('kim', 'woooo');
        $response = $client->get();
        if ($response->isSuccess()) {
            echo $response . '<br />';
        }
    }

}